package com.example.examsystem2.service.serviceImpl;


import com.example.examsystem2.entity.ShortAnswerQuestions;
import com.example.examsystem2.mapper.ShortAnswerQMapper;
import com.example.examsystem2.service.ShortAnswerQService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class ShortAnswerQServiceImpl implements ShortAnswerQService {

    @Resource
    private ShortAnswerQMapper shortAnswerQMapper;

    public void setShortAnswerQMapper(ShortAnswerQMapper shortAnswerQMapper) {
        this.shortAnswerQMapper = shortAnswerQMapper;
    }

    @Override
    public int add_short_answer_question(ShortAnswerQuestions shortAnswerQuestions) {
        return shortAnswerQMapper.add_short_answer_question(shortAnswerQuestions);
    }

    @Override
    public List<ShortAnswerQuestions> get_short_answerQ_by_s_id(int s_id) {
        return shortAnswerQMapper.get_short_answerQ_by_s_id(s_id);
    }

    @Override
    public int update_short_answerQ_by_sa_id(ShortAnswerQuestions shortAnswerQuestions) {
        return shortAnswerQMapper.update_short_answerQ_by_sa_id(shortAnswerQuestions);
    }

    @Override
    public int del_short_answerQ_by_sa_id(int sa_id) {
        return shortAnswerQMapper.del_short_answerQ_by_sa_id(sa_id);
    }

    @Override
    public List<ShortAnswerQuestions> get_question_by_s_id_and_level(Map<String, Object> map) {
        return shortAnswerQMapper.get_question_by_s_id_and_level(map);
    }

    @Override
    public ShortAnswerQuestions get_saq_by_sa_id(int sa_id) {
        return shortAnswerQMapper.get_saq_by_sa_id(sa_id);
    }

    @Override
    public int num3() {
        return shortAnswerQMapper.num3();
    }

    @Override
    public List<ShortAnswerQuestions> get_saq_test_by_s_id(int s_id) {
        return shortAnswerQMapper.get_saq_test_by_s_id(s_id);
    }

}
